
define(["business/services/constant"], function (constant) {
    var userUrl = constant.config.BASEURL_USER;
    var  api_person = constant.config.CONSTANT_PERSON;
    var api_user = constant.config.CONSTANT_FOLLOW;
    var api_collection = constant.config.CONSTANT_COLLECTIONA ;

    return {
        personServices:function(requestion){
            return constant.httpSend(userUrl,api_person,requestion);
        },
        userServices:function(requestion){
            return constant.httpSend(userUrl,api_user,requestion);
        },
        collectServices:function(requestion){
            return constant.httpSend(userUrl,api_collection,requestion);
        },
        updateCollection:function(fkId,type){
            var requestion = {
                type:"POST",
                uri:"update",
                data:{
                    fkId:fkId,
                    type:type
                }
            }
            return constant.httpSend(userUrl,api_collection,requestion);
        }

    }
});


